import 'package:flutter/material.dart';

import 'function_button_data.dart';

class FunctionButtonWidget extends StatelessWidget {
  final FunctionButtonItem data;

  const FunctionButtonWidget(
    this.data, {
    Key? key,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      width: MediaQuery.of(context).size.width * 0.195,
      child: Column(
        children: <Widget>[
          Image.asset(
            data.imageUrl,
            width: 40.0,
            height: 40.0,
          ),
          Text(
            data.title,
            style: TextStyle(fontSize: 12.0),
          )
        ],
      ),
    );
  }
}
